package com.uwo.house.service;

import com.uwo.house.beans.PayLogEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by dell on 2017/10/31.
 */
public interface IAliPayService {
    PayLogEntity getPayLogByOrderNo(String orderId);

    /**
     * 电脑付款
     * @param out_trade_no      商户订单号，商户网站订单系统中唯一订单号，必填
     * @param total_amount      付款金额，必填
     * @param subject           订单名称，必填
     * @param body              商品描述，可空
     * @return
     */
    void trade_computer_pay(HttpServletRequest httpRequest, HttpServletResponse httpResponse, String out_trade_no, String total_amount, String subject, String body);

    /**
     * 更新支付日志
     *
     * @param payLogEntity
     */
    void updatePayLog(PayLogEntity payLogEntity);
}
